package team.newexcellence.tsfitness.service;

import team.newexcellence.tsfitness.pojo.User;

/**
 * @Description: 用户的服务层
 * @Author: liningbo
 * @CreateDate: 2018/8/1 11:05
 * @UpdateUser: liningbo
 * @UpdateDate: 2018/8/1 11:05
 * @UpdateRemark: 修改内容
 * @Version: 1.0
 */
public interface UserService {
    /**
     * 用户登录
     *
     * @param userPhone
     * @param password
     * @return
     * @throws Exception
     */
    public Integer userLogin(String userPhone, String password) throws Exception;

    /**
     * 用户注册
     *
     * @param user
     * @param code
     * @return 是否注册成功
     * @throws Exception
     */
    public Integer userRegister(User user, String code) throws Exception;

    /**
     * 用户信息反馈
     *
     * @param userID
     * @return 用户信息
     * @throws Exception
     */
    public User userShow(int userID) throws Exception;

    /**
     * 用户修改信息
     *
     * @param userID
     * @return 是否修改成功
     * @throws Exception
     */
    public Integer userModifyInformation(int userID) throws Exception;

    /**
     * 统计用户运动时长
     *
     * @param userID
     * @return 返回用户运动时长
     * @throws Exception
     */
    public Integer userStatisticsAllTime(int userID) throws Exception;

}
